package com.tom.architect.day19.simple2.handler;

/**
 * Added by Tom on 2023/12/26.
 * 责任链设计模式：抽象处理者角色。
 */
public abstract class AbsUserSystemHandler implements IUserSystemHandler<AbsUserSystemHandler>, IUserSystem {

    private AbsUserSystemHandler nextHandler; // 下一个是谁。

    public AbsUserSystemHandler getNextHandler() {
        return nextHandler;
    }

    // 设置nextHandler。
    public void nextHandler(AbsUserSystemHandler nextHandler) {
        this.nextHandler = nextHandler;
    }

}
